package com.starssea.mybatis.provider;

public class SqlProvider {
    // 定义静态方法
    public static String selectOne() {
        return "select * from article where id = #{id}";
    }

    public static String updateTime() {
        return "update article set update_time= #{updateTime} where id = #{id}";
    }

    public static String insert() {
        return """
                insert into article(user_id, title, summary, read_count, create_time, update_time)
                values (#{userId}, #{title}, #{summary}, #{readCount}, #{createTime}, #{updateTime})
                """;
    }
}
